<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	<f:view>
		<h:head></h:head>
		<h:body>
			<rich:panel header="Login AirPort Web App">
				<h:form>
					<h:outputText value="Usuario:" />
					<h:inputText id="name" value="#{loginBean.login}" >
						<f:validator validatorId="br.com.fiap.beans.validator.LoginValidatorUsuario"/>
					</h:inputText>
					
					<br />

					<h:outputText value="Senha:" />
					<h:inputSecret id="senha" value="#{loginBean.senha}" >
						<f:validator validatorId="br.com.fiap.beans.validator.LoginValidatorSenha"/>
					</h:inputSecret>
					<p>
						<h:commandButton action="#{loginBean.login()}"
							value="LogIn" />
						<h:commandButton action="#{loginBean.cadastrar()}" value="Cadastrar" immediate="true"/>
					</p>

				</h:form>
			</rich:panel>
		</h:body>
	</f:view>
</ui:composition>